package cn.itcast;

import cn.itcast.clone.Address;
import cn.itcast.clone.Person;

import java.util.HashMap;
import java.util.Hashtable;
import java.util.concurrent.ConcurrentHashMap;

/**
 * Hello world!
 *
 */
public class App 
{
    public static void main( String[] args )
    {

        String s1 = "Java";
        String s2 = "Java";
        String s3 = new String("Java");
        int i1 = System.identityHashCode(s1);
        int i2 = System.identityHashCode(s2);
        int i3 = System.identityHashCode(s3);
        System.out.println(i1==i2);
        System.out.println(i2==i3);
    }
}
